connect_dict = {
    "143":["领结腰带",set(["裤带","皮带","袖扣","腰带", "领带","领结"]),set(["领带架","公仔","情侣表","女表","男表","女款","配腰带","增腰带","送腰带","护腰带","附腰带","女人","女士","领结型","手表","数据线","肉","配皮带","翻新","修理","衬衫", "马丁鞋","风扇皮带","有腰带","领带夹","机皮带","带腰带","保健","围兜","腰带款","按摩腰带","空调皮带","收腹带","束腰带","束缚带","汽车","肚皮舞","内裤","牛仔裤","磁疗","皮带壳","皮带式","带皮带须","皮带装饰","挂架","美甲","护腰","农机","机器","含腰带","手链"]),set([165,166,167,172,91,100,122,136,142,68,134,133,140,139,137,161])],

    "43":["单反/单电相机配件",set(["单反","相机","摄像机"]),set(["清洁","押金"]),set([165,166,167,100,122,136,68,21])],

    "164":["功能箱包",set(["旅游包","行李箱","钥匙包","多功能箱","多功能包","旅行箱","拉杆包","拉杆箱","手提箱","登机箱","密码箱"]),set(["包邮","保险柜","包车"]),set([154])],

    "100":["手表",set(["情侣表","石英表","智能手表","陶瓷表","女表","男表","手表","腕表","石英表","机械表","电子表","儿童表","西铁城","劳力士"]),set(["维修","修理","表情","表白","表格","球","表盒","表演","表链","恤"]),set([154,68])],

    "51":["唇部护理",set(["唇膏","唇膜","口红","唇彩","唇蜜"]),set(["开口红","护手霜","进口红"]),set([68,172])],

    # 洗发洗护
    "55":["洗发造型",set(["洗发水","洗发乳","洗发膏","护发素","发胶","洗发露","润发乳","洗头水","发膜","啫喱水"]),set(["胶囊"]),set()],
    "52":["洗发造型",set(["定型水","啫喱水","发膜","定型喷雾","发泥","发蜡","发胶","假发"]),set(["假发货"]),set()],

    # 体育运动
    "159":["水上运动",set(["滑冰鞋","泳脚蹼","泳手蹼","划水掌","冰球运动护具","滑雪运动护具","滑雪服","滑雪眼镜","滑雪裤","冰上运动","救生衣","潜水服","手机防水袋","水母衣","航海鞋","浮潜面罩","潜水面罩","潜水脚蹼","朔溪鞋","冲浪板","冰球","滑雪","滑冰","水上运动","冰刀","双板","雪仗","护目镜"]),set(["体验","研讨会","交流活动","报名","鞋","面膜","模具","帽","衣","裤","良品铺子","蛋糕","营","雪场","票","每周","雪肤","天","活动","泡温泉","服务","日","乐园","馆","劵","旅","雪仗"]),set([157,140,134,93,133,167,68,113])],

    "160":["球类运动",set(["马球","球护具","高尔夫球","球打气筒","足球","篮球","羽毛球","桌上足球","网球","乒乓球","排球","保龄球","台球"]),set(["蛋糕","良品铺子","研讨会","交流活动","报名","票","创意","体验","鞋","帽","衣","裤","爆米花","棒棒糖","课","宠物","关节","赛","代充","恤","营"]),set([68,113])],

    # 户外装备
    "158":["户外露营/野炊装备",set(["烧烤炉","野炊","露营","睡袋", "户外垫","充气垫","旅行床","帐篷","营地灯","钓椅","始祖鸟","软壳衣","软壳裤","萨洛蒙","手杖","防潮垫","野餐垫","折叠椅","马扎","沙滩椅","吊椅","登山杖","探照灯"]),set(["车","油","婴儿","宝宝","家用","活动","门票","亲子","体验","孩子","休闲游","天","吃","节","电"]),set([68,113])],
    "156":["户外包/登山包/旅行包",set(["水袋背包","旅行包","腰包","运动水壶","户外背包","户外包","登山包","旅游包","网羽包"]),set(["车载","腰包臀","高腰包覆"]),set([157,140,134,93,133,167,68])],

    # 童鞋
    "93":["童鞋",set(["童皮靴","童皮鞋","学步鞋","童马丁鞋","童雪地鞋","童布鞋","弹簧鞋","公主鞋","婴儿鞋","童鞋","童运动鞋","童休闲鞋","童靴","童凉鞋","宝宝鞋","童帆布鞋","童凉拖鞋","童跑步鞋","童跑鞋","同款童装"]),set(),set([157,140,134,133,167,68,93])],

    # 健身设备
    "162":["健身设备",set(["腹肌板","倒立机","甩脂机","半指手套","健身手套","腕力器","仰卧板","健腹板","俯卧撑","握力器","健身器械","腹肌轮","俯卧撑架","健身车","呼啦圈","计步器","风火轮","拉力器","拉力绳","扭腰盘","暴走鞋","滑板","哑铃","跑步机","杠铃","扩胸器","臂力器","踏步机","力量训练器械","单双杠","跳绳","健身器材","健腹轮"]),set(["玩具","袜","保暖","培训","平滑板","滑板鞋","宠物","汽车"]),set([157,140,134,93,133,167,68])],

    # 家装建材
    "26":["卫浴洁具",set(["浴缸","马桶刷","浴帘","马桶垫","马桶盖","浴室","洗手间","坐便器","毛巾架","面盆龙头","拖把池龙头","洗衣机龙头","进水软管","出水软管","角阀","花洒","地漏","浴霸","卫浴","挂钩"]),set(["浇花洒","衣","折挂钩","车载"]),set([157,140,134,93,133,167,68,21])],
    "32":["挂饰/镜子/家装工艺摆设类",set(["家饰","家居挂饰","家居挂件","家居摆件","客厅摆件","花瓶","仿真饰品","仿真花","壁画","相框","墙纸","相架","装饰画","壁饰","家装饰品","家装工艺品","穿衣镜","浴室镜","试衣镜","墙饰","全身镜","柜镜","梳妆镜","手办"]),set(["蛋糕","花瓶式","真花朵","车载","生日礼","钱包","花瓶装"]),set([157,140,134,93,133,167,68])],

    # 电脑平板
        #"130":["电脑平板",set(["笔记本电脑","surface","平板电脑","戴尔", "macbook","华硕电脑","联想电脑","整机","平板"]),set(["电源","戴尔斯","摇杆","数据线","拖把","平板拖","音箱","灯", "支架"]),set([157,140,134,93,133,167,68])],
        "130":["电脑平板",set(["电脑主机","电脑整机","台式电脑主机"]),set(["机箱","电源","戴尔斯","摇杆","数据线","拖把","平板拖","音箱","灯", "支架"]),set([157,140,134,93,133,167,68,100])],

    # 汽车用品
    "97":["汽车内饰",set(["车载","车用","车挂","汽车脚垫","竹炭包","车摆","儿童安全座椅","车内用品","防踢垫"]),set(),set([157,140,134,93,133,167,68])],
    "98":["汽车外饰",set(["汽车反光贴","汽车遮阳","车标","车门锁","轮胎","汽车电子","消声器","汽车气门","灯眉","轮眉","汽车底盘","油箱保护板","车门","防滑链","门碗","迎宾踏板","雨眉","汽车防爆膜"]),set(),set([157,140,134,93,133,167,68])],
    "99":["汽车电子",set(["车记录仪","车防盗器","安全预警仪","车检测仪"]),set([]),set([157,140,134,93,133,167,68])],

    # 儿童内衣裤
    "72":["儿童内衣裤/睡衣/配饰",set(["宝宝保暖内衣","宝宝睡衣","宝宝饰品","宝宝饰品","宝宝内裤","宝宝背心","宝宝秋","童空调睡","童秋裤","童秋衣","童银锁","童手链","童项链","童背心","童内裤","童内衣", "宝宝内衣", "童保暖内衣", "童睡衣", "童装睡衣", "童饰品", "童配饰", "童领结", "童发饰", "童假发", "童发箍", "童眼镜"]),set(["皂","液"]),set([157,140,134,93,133,167,68])],

    # 家居家装
    "28":["坐具/沙发/坐垫类",set(["椅","凳","沙发","门厅柜","鞋柜","抽屉","储物柜","洽谈桌","玄关","床头柜","椅垫","沙发椅","榻榻米","藤椅","餐椅","换鞋凳","碗柜","咖啡桌","电脑桌","老板桌","办公桌","书架","衣柜","电视柜","茶几"]),set(["电","钓鱼椅","汽车","课程","盆栽","鱼缸","衣机","摆件","花","锁","干燥剂","防臭","防潮","樟脑丸","养护","清洁","洗护","培训","车载","气垫床","玩具","清洗"]),set([157,140,134,93,133,167,68,21,92])],

    # 体感智能
    "42":["体感车/独轮车/其它体感",set(["虚拟现实","体感车", "思维车", "体感游戏机", "体感跳舞毯", "体感主机"]),set(),set([157,140,134,93,133,167,68])],
    "48":["智能穿戴/眼镜/硬件周边",set(["智能手表", "智能穿戴", "智能眼镜", "智能手环"]),set(),set([157,140,134,93,133,167,68])],

    # 男士护理
    "56":["男士护理",set(["刮胡刀","刮胡刀","吉列","男士洗面奶", "男士护理", "男士洗发液", "男士沐浴液", "男士保湿", "男士控油", "剃须刀"]),set(),set([157,140,134,93,133,167,68])],

    # 玩具
    "80":["幼儿响铃/布书手偶/爬行健身",set(["摇铃","响铃", "益智早教","布娃娃","手偶","布书"]),set(["早教书","响铃卷"]),set([157,140,134,93,133,167,68])],
    "82":["彩泥/手工制作/仿真/过家家玩具",set(["橡皮泥", "彩泥", "软陶泥","过家家","儿童手工","幼儿园手工"]),set(),set([157,140,134,93,133,167,68])],
    "76":["婴童文具用品/儿童书包",set(["童文具", "童书包"]),set(),set([157,140,134,93,133,167,68])],
    "84":["早教/音乐/智能玩具",set(["智能玩具","童早教", "早教有声", "早教识字"]),set(),set([157,140,134,93,133,167,68])],
    "83":["戏水玩具/洗澡用品",set(["洗澡玩具", "宝宝戏水", "戏水玩具", "水枪玩具","玩具水枪"]),set(),set([157,140,134,93,133,167,68])],
    "89":["积木/拆装/串珠/拼图/配对玩具",set(["积木", "儿童拼图","配对玩具"]),set(),set([157,140,134,93,133,167,68,100])],
    "88":["电动/遥控/惯性/发条玩具",set(["遥控汽车","遥控玩具","电动玩具", "遥控车","发条玩具"]),set(),set([157,140,134,93,133,167,68])],

    # 电脑配件
    "128":["平板电脑配件",set(["平板键盘","平板电脑包","平板内胆包","平板支架","平板电脑支架","平板保护套","平板保护壳"]),set(["手机"]),set([])],
    "131":["电脑/笔记本配件",set(["cpu","内存","显卡","网卡","路由器","存储卡","硬盘","中继器","导航仪","u盘","电源适配器","考勤机","电脑主机","转接线","转接头","视频线","音频线","集线器","供方","数据线","耳机线","复读机","声卡","光驱","台式机","处理器","交换机","笔记本内胆包","cpu风扇","电脑音响","手写板","硬盘","内存","音频线","VGA线","U盘","优盘","鼠标","键鼠","电脑适配器","笔记>本外壳","路由器","电脑包","散热架","电脑显示器","网线转换器","视频转换器","网卡","显卡","声卡","主机箱","电脑散热","集线器"]),set(["手机","车载","鼠标手","键盘手","课程","真题"]),set([157,140,134,93,133,167,68])],

    # 孕妈
    "78":["孕妈服饰",set(["孕妇摄影", "孕妇装", "孕妇照", "孕妈摄影", "孕妈写真","孕妇连衣裙","孕妇裤","托腹裤","妈咪包"]),set(),set([157,140,134,93,133,167,68])],
    "79":["孕妈用品",set(["产妇用品", "妈妈用品", "孕妇入院", "待产妈咪", "妈咪产后", "孕产妇"]),set(),set([157,140,134,93,133,167,68])],
    "77":["孕妇营养",set(["孕妇营养", "叶酸备孕", "孕妇维生素", "孕妇燕窝","孕妇奶粉"]),set(),set([157,140,134,93,133,167,68])],

    # 婴幼儿护肤品
    "75":["婴幼儿护肤品",set(["儿护肤","宝宝面霜","儿护肤霜","婴幼儿滋养", "婴儿乳液", "婴儿面霜", "婴幼儿润肤", "婴儿润肤", "宝宝护肤", "童护肤", "痱子粉","爽身粉"]),set(["奶粉"]),set([157,140,134,93,133,167,68])],

    # 用品
    "90":["童床/餐椅",set(["童床","童餐椅"]),set([]),set([157,140,134,93,133,167,68])],
    "86":["水杯/哺喂相关",set(["奶瓶","奶嘴"]),set(["奶瓶装"]),set([157,140,134,93,133,167,68])],

    # 个人护理
    "124":["保健/按摩器材",set(["保健护具","保健项圈","按摩器","足浴器","泡脚盆","洗脚盆","洗脚桶","泡脚桶","刮痧片","刮痧板","按摩床","按摩椅","点穴棒","电动轮椅","按摩沙发","温灸器","保健手环","拔罐器","桑拿浴盆","理疗仪"]),set([]),set([157,140,134,93,133,167,68])],

    # 生活服务-->卡券/票务
    113:["卡券/票务",set(["门票", "儿童票", "套票", "通票", "学生票", "一票通", "单次票", "日场票", "夜场票", "电子票", "全票", "单次票", "联票", "玩票", "单人票", "双人票", "三人票","会员卡"]),set(),set()],

        # 生活服务-->旅行
    118:["旅行",set(["船票", "自驾游", "景点门票", "休闲游", "二日游", "游船", "两日游", "团游", "游湖", "五日游", "夜车", "夜游", "索道", "大巴", "双卧", "纯玩", "观光", "机票", "车票", "火车票"]),set(["大巴西","正大巴沙鱼片","大巴山","自驾游必备","装备","车载","车线","恤"]),set([172,177,181,174,182,129,134,137])],

    # 生活服务-->培训
        117:["教育/培训/咨询",set(["初级班","中级班","高级版","提高班","强化班","培训班","培训中心","讲堂","基础课","速成班","集训班","短训班","研修班","兴趣班","暑期班","特训营","网校","辅导班","密训营","集训营","冲刺班","课程","课堂","学习班","培训费","咨询服务"]),set(["恤"]),set([100])],

    # 生活服务-->餐饮外卖
    122:["餐饮外卖",set(["外卖","堂食","快餐","餐饮","饭店","饭庄","茶餐厅","火锅店","酒楼","盒饭","吉野家","煲仔饭","蛋炒饭","盖浇饭","砂锅","鱼香肉丝","炒饭","简餐","鱼香茄子","麻辣烫","面馆","食堂","盖浇饭","便餐","招牌菜","家常菜","餐馆","便当"]),set(["日游","厨具","工具","厨房","机器","杂志","合订","钢","保温","模具","便当盒","底料","调味","调料","恤","摄影"]),set()],

    # 食品茶饮--> 酒类
        186:["酒类",set(["嘉士伯","啤酒","燕京啤酒","青岛啤酒","哈尔滨啤酒","鸡尾酒","百威","雪津","纯生","老白干","习酒","天之蓝","朗姆酒","五粮液","四特","马爹利","西凤","水井坊","金六福","酒鬼酒","剑南春","郎酒","洋河大曲","海之蓝","梦之蓝","杏花村","女儿红","汾酒","花雕酒","二锅头","荞酒","五粮醇","曲酒","茅台","威士忌","金酒","酒","洋酒","杰克丹尼","伏特加","冰酒","健力士","喜力","一麦","劲酒"]),set(["酒红","酒店","酒楼","酒桶","喝酒","车载","酒会","美甲","巧克力","创意","酒窝","酒鬼","酒家","下酒","酒香","虾","蟹","配酒","解酒","机油","课","料酒","酒精","啤酒鸭","花生","酒心","酒杯跟","酒宴","果仁","酒酿","酒杯","酒具","醒酒器","饼干","牛奶","保温杯","零食","按摩","酒吧","ktv","纯K","票","恤"]),set([67,122,21])],

    # 护肤彩妆--> 香水
        62:["香水",set(["香水","古龙水","Acqua","Colonia","Parma","费洛蒙","Goutal","Diptyque","Annick","Parfum","Magnolia","Vetiver","芦丹氏","Heeley"]),set(["乳","沐浴露","柠","水果","车"]),set([97,98,96,99,101,172,175])],

    # 护肤彩妆-->
        50:["化妆工具",set(["剪刀包","剪刀腰包","美发工具","理发师腰包","遮瑕笔","眉刷","睫毛夹","贝览得","粉饼","刮眉刀","化妆棉","化妆包","卧蚕笔","修容膏","美容工具","修容粉","高光粉","眉卡","化妆刷","彩妆盘","粉饼","芬龄","梦芬","眉粉","染眉膏","眉笔","植村秀","贝玲妃"]),set(["车","饼干"]),set()],


    # 图书音像-->图书
        21:["图书",set(["合订本","图书","必读书","书籍","套书","励志书","图画书","读物","口袋书","童书","文学","期刊","古诗词","读本","译文","著作","少儿读物","课外读物","读物","世界名著","畅销书","哲学","长篇小说","书店","插图本","皮装","伦理学","出版社","小说","译本","系列丛书","增订本","心理健康","枕边书","选集","文集","选编","修订本","专辑","著作","教辅"]),set(),set()],

    # 生活服务--> 蛋糕/鲜花
        120:["蛋糕/鲜花",set(["花艺","鲜花","银叶菊","瓶花","桔梗花","绣球花","康乃馨","剑兰","千日红","冷美人","叶菊","扶郎","勿忘我","香石竹","翠菊","栀子花","月季","毛茛","马蹄莲","金鱼草","郁金香","飞燕草","紫罗兰","蛋糕","雪媚娘","班戟","木糠","慕斯"]),set(["玫瑰金","耳环","香薰","水晶","球","盘","吊坠","翡翠","镀","链","主题乐园","票","首饰","耳钉","手链","项链","玫瑰色","手镯","盆栽","饭","模具","工具","厨房","烘焙","烤盘","烤箱","蛋糕粉","班","膜","锅","裱花枪","外卖","锡纸","画","课","饮料","汁","模","水果干","新鲜花","菜","郁金香葡萄","瓜","皂粉","洗衣粉","花椒","蛋糕机","电","遥控","花生","智能","良品铺子","手机","玩具","恤","鞋","裙","袜","裤","文化节"]),set([71,134,136,144,145,147,103,104,105,106,107,100,113,122,166])],

        #
        154:["花类",set(["矮牵牛","白掌","蝴蝶兰","发财树","营养土","观音竹","红掌","富贵竹","虎尾兰","仿真植物","绿色植物","盆景","绿植","绿萝","络石","蟹爪兰","盆栽","吊兰","铁线蕨","粉掌","鹤望兰","蓝石莲","仙客来","水仙花","龟背竹","乙女心"]),set(["创意","女","袍","裙","衣"]),set()],

        # 民俗文化
        3929:["民俗文化",set(["念珠","菩提子","手珠","回纹珠"]),set(),set([101])],

        # 五金与工具
        23:["五金与工具",set(["钳子","老虎钳","钢丝钳","起子","螺母","开瓶器","五金工具","螺丝刀","磨刀石","螺钉","胶柄","棘轮","扳手","油桶","钳子","雕刻刀","片刀","水管","塞子","铁锹","刻刀","磨刀石","内六角","端子","胶枪","刀座","焊枪","pvc管","水管","密封圈"]),set(["玩具","装饰","蛋糕","面包","茶","制药","电","清洁剂","创意","剂"]),set()],
#
    92:["童车/安全座椅/手推车/出行用品",set(["儿童安全座椅","学步车","扭扭车","踏行车","助步车","溜溜车","童车","伞车"]),set(["票"]),set()],

    # 厨房
    27:["厨房",set(["净水器","水槽","米箱"]),set(["服务","茶"]),set()],
    # 老人鞋
    168:["老人鞋",set(["老人鞋"]),set(),set()],

    163:["防护/救生设备",set(["急救包","急救箱","急救护理","急救毯","破窗器","除颤仪","指南针"]),set(),set()],

    36:["窗帘/窗纱/门帘类",set(["门帘"]),set(),set()],
    61:["面部洗护工具",set(["卸妆棉","洗脸刷","面扑","洗脸海绵","洗脸扑","洗颜棉","美容纸巾"]),set(["扑来"]),set()],

    24:["儿童/青少年家具",set(["护栏","儿童床","儿童家具","家具儿童","儿童枕头","儿童工作台","儿童台灯","儿童闹钟","宝宝凉席","婴儿床","儿童防撞条"]),set(["创意","剂"]),set()],

    35:["物品套/罩类",set(["桌布","桌旗","盖布","防尘罩","遮尘布","盖巾","冰箱罩","遮尘罩","防尘布"]),set(["布丁","盖布艺"]),set()],

    155:["鸟类及用品",set(["鸟用具","鸟食"]),set(),set()],
    152:["水族世界",set(["氧泵","喂食器","水族","造景","鱼缸","鱼饲料","龟饲料","龟粮","鳖饲料","鳖粮"]),set(["车"]),set()],
    150:["宠物服饰及配件",set(["宠物衣","狗衣","猫衣","狗服","宠物服"]),set(),set()],
    151:["宠物零食",set(["狗罐头","狗粮","猫主粮","狗主粮","狗零食","猫零食","妙鲜包","猫罐头","犬粮","宠物粮"]),set(),set()],

    41:["专业音频设备",set(["耳机","耳麦","音频线","耳放","收录机","功放","音响"]),set(["车"]),set()],
    138:["婚纱/礼服/旗袍",set(["旗袍","礼服","婚纱","新娘头饰","新娘头纱"]),set(),set()],
    37:["箱架类",set(["花架","书报架","储物箱","CD架","壁炉架","多宝格","药箱","搁板","伞架","格架","置物架","衣帽架","鞋架"]),set(["车"]),set()],
    114:["婚庆摄影",set(["儿童摄影","婚纱摄影","照相馆","证件照","照片打印","毕业照","约拍"]),set(),set()],
   #145:["乐器及乐器配件",set(["吉他","钢琴","提琴","尤克里里","口琴","西洋鼓","架子鼓","风琴"]),set(["教学","课","文具","印花","婴儿","幼儿"]),set()],

    149:["字画书法类",set(["年画","碑帖","对联","笔墨纸砚","国画","水彩画"]),set(["手机"]),set([21])],

       # 民俗文化
       3929:["民俗文化",set(["佛珠","A货","鸡血石"]),set(),set([101])],
       3929:["民俗文化",set(["念珠","菩提子","手珠","回纹珠","鸡血石"]),set(["菌"]),set([101])],
}
